<?php 
	require_once('sacvoyage/http/I18n.php'); 
	use \sacvoyage\http;
	
	require_once('sacvoyage/http/Globals.php'); 
	require_once('sacvoyage/http/util.php'); 
	
	
	
?>
<html>

<?php if(isset($shakeHead) && $shakeHead) { ?>
	<body onload="load();">
<?php } else { ?>
	<body>
<?php }?>


<style>

	body {
		text-align: center;
	}

	form {	
		position: relative;
		vertical-align: center;		
		background: white;
		display: inline-block;
		padding: 2em;
		border: solid black 1px;
		position: relative;
		z-index: 2;
	}
	
	form p {
		margin: .5em;
		
	}

	.error {
		color: red;
	}
	
	.message {
		/*  */
	}

	form p.title {
		font-size: 1.5em;
		background-color: white;
	}
	
	#background {
		background-color: gray;
		opacity: .75;
		position: fixed;
		top: 0;
		left: 0;
		width: 140%;
		height: 140%;
		z-index: -1;
	}

</style>




<br/><br/><br/>
<form action='http://<?php echo \sacvoyage\http\Globals::getSiteBaseUrl(); ?>' method='POST'>
	<p>
		<?php 
			$message=sprintf(\sacvoyage\http\i18n('Your [sacvoyage], %s'), $userName);
			$message=preg_replace(
				'/\[(.*?)\]/i',
				sprintf('<a href="http://%s">$1</a>', \sacvoyage\http\Globals::getSiteBaseUrl().'\\'.$userName), 
				$message
			);
			echo $message;
		?>
	</p>
	<input type="hidden" name="action" value="logout"/>
	<input type="submit" name="submit" value="logout"/>
</form>




<div id="background"></div>
</body>
</html>
